package cn.neusoft.edu.his.demo.mapper;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import cn.neusoft.edu.his.demo.po.Doctor;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface DoctorMapper extends BaseMapper<Doctor>{
	@Select("select * from doctor")	
	List<Doctor> getAllDoctors();

	@Select("select t.* from doctor t where t.depart_id2=#{departId2}")
	List<Doctor> getDoctor(Doctor doctor);

	@Select("select doc_id from doctor where doc_name=#{docName} and telephone=#{telephone}")
	Doctor getDoctor1(Doctor doctor);

	@Update("update doctor set recommend=#{recommend} where doc_id=#{docId}")
	int updateRecommend(Doctor doctor);

}
